/// <reference path="../3rdParty/Mootools-Core.js" />

/* Utility scripts for Pardus Sector Tool
 * (C) Yassen 2009
 *
 * debug.js
 * Defines functions for debugging information.
 *
 * Functions:
 * void  debugit(txt)
 *
 */


window.addEvent("domready", function()
{
  $(document.body).adopt(new Element("div", { id: "DebugBox" }));
});

function debugit(text)
{
  /// <summary>Prints debug message(s) to the screen.</summary>
  /// <param name="text" type="String">Message to write.
  /// <returns type="void"></returns>

  $("DebugBox").set("html", $("DebugBox").get("html") + text + "<br />");
}